package com.atguigu.gulimall.ware.service;

import com.atguigu.gulimall.ware.vo.PurchaseDoneReqVo;
import com.atguigu.gulimall.ware.vo.PurchaseMergeReqVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.ware.entity.PurchaseEntity;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author laisanshan
 * @email fromzero911@gmail.com
 * @date 2021-07-12 16:52:24
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询未领取的采购单
     *
     * @return 未领取的采购单
     */
    PageUtils queryUnreceiveList(Map<String, Object> params);

    /**
     * 合并采购需求
     *
     * @param purchaseMergeReqVo 采购信息请求vo
     */
    void merge(PurchaseMergeReqVo purchaseMergeReqVo);

    /**
     * 领取采购单
     *
     * @param ids 采购单id列表
     */
    void received(List<Long> ids);

    /**
     * 完成采购
     *
     * @param purchaseDoneReqVo 采购单完成请求vo
     */
    void done(PurchaseDoneReqVo purchaseDoneReqVo);

}

